home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / pp / pp-6.0 / Tools / misc / Makefile < prev    next >
Encoding:
Makefile  |  1991-12-18  |  8.8 KB  |  332 lines

  1. #               miscellaneous - used by pp-hackers only
  2. #
  3. ############################################################
  4. #
  5. # @(#) $Header: /xtel/pp/pp-beta/Tools/misc/RCS/Makefile,v 6.0 1991/12/18 20:30:40 jpo Rel $
  6. #
  7. # $Log: Makefile,v $
  8. # Revision 6.0  1991/12/18  20:30:40  jpo
  9. # Release 6.0
  10. #
  11. #
  12. ############################################################
  13. #
  14. # Definitions
  15. #
  16. ############################################################
  17.  
  18.  
  19.  
  20. SRCS =  t-chkpe.c t-conf.c t-norm.c t-pefrag.c t-prf.c t-rdmsg.c \
  21.        t-single.c t-time.c t-rtime.c t-txt2dr.c
  22. OBJS =  t-chkpe.o t-conf.o t-norm.o t-pefrag.o t-prf.o t-rdmsg.o \
  23.        t-single.o t-time.o t-rtime.o t-txt2dr.o
  24. # DO NOT DELETE THIS LINE MAKE DEFINE NEEDS IT
  25.  
  26. HEADERS         = ../../h
  27. LIBPP           = ../../Lib/libpp.a
  28.  
  29. LDFLAGS        = $(LDOPTIONS) $(LLF)
  30. CFLAGS          =  $(CCOPTIONS) $(LCF) -DDEBUG -I$(HEADERS)
  31. LLFLAGS         = $(LINTFLAGS) -I$(HEADERS) -u
  32. LINTLIBS        = ../../Lib/llib-lpp.ln $(LINTISODE)
  33.  
  34.  
  35. ############################################################
  36. #
  37. #               Building Rules
  38. #
  39. ############################################################
  40.  
  41.  
  42. PROGS = xt-chkpe xt-conf xt-norm xt-pefrag xt-prf xt-rdmsg \
  43.     xt-single xt-time xt-rtime xt-txt2dr
  44.  
  45. default: $(PROGS)
  46. all:    default
  47.  
  48. lint:   l-t-chkpe l-t-conf l-t-norm l-t-pefrag l-t-prf l-t-rdmsg \
  49.     l-t-single l-t-time l-t-txt2dr
  50.  
  51. install: inst-dir inst-t-chkpe inst-t-conf inst-t-norm inst-t-pefrag \
  52.     inst-t-prf inst-t-rdmsg inst-t-single inst-t-time inst-t-txt2dr
  53.  
  54. inst-dir: $(TOOLDIR)
  55.  
  56.  
  57. ############################################################
  58. #
  59. #       Start of Program compilations & installations
  60. #
  61. ############################################################
  62.  
  63.  
  64. t-chkpe:                xt-chkpe
  65. xt-chkpe:               t-chkpe.o $(LIBPP)
  66.             $(CC) $(LDFLAGS) -o $@ t-chkpe.o $(LIBPP) $(LIBSYS)
  67. l-t-chkpe:              t-chkpe.c
  68.             $(LINT) $(LINTFLAGS t-chkpe.c $(LINTLIBS)
  69. inst-t-chkpe:           $(TOOLDIR)/t-chkpe
  70. $(TOOLDIR)/t-chkpe:     xt-chkpe
  71.             -$(BACKUP) $@ zxt-chkpe
  72.             rm -f $@
  73.             $(INSTALL) xt-chkpe $@
  74.             -$(CHMOD) $(PGMPROT) $@
  75.             -$(CHOWN) $(PPUSER) $@
  76.             -@ls -ls $@
  77.             -@echo "t-chkpe tool installed normally"; echo ""
  78.  
  79.  
  80.  
  81. t-conf:                 xt-conf
  82. xt-conf:                t-conf.o $(LIBPP)
  83.             $(CC) $(LDFLAGS) -o $@ t-conf.o $(LIBPP) $(LIBSYS)
  84. l-t-conf:               t-conf.c
  85.             $(LINT) $(LINTFLAGS t-conf.c $(LINTLIBS)
  86. inst-t-conf:            $(TOOLDIR)/t-conf
  87. $(TOOLDIR)/t-conf:      xt-conf
  88.             -$(BACKUP) $@ zxt-conf
  89.             rm -f $@
  90.             $(INSTALL) xt-conf $@
  91.             -$(CHMOD) $(PGMPROT) $@
  92.             -$(CHOWN) $(PPUSER) $@
  93.             -@ls -ls $@
  94.             -@echo "t-conf tool installed normally"; echo ""
  95.  
  96.  
  97. t-norm:                 xt-norm
  98. xt-norm:                t-norm.o $(LIBPP)
  99.             $(CC) $(LDFLAGS) -o $@ t-norm.o $(LIBPP) $(LIBSYS)
  100. l-t-norm:               t-norm.c
  101.             $(LINT) $(LINTFLAGS) t-norm.c $(LINTLIBS)
  102. inst-t-norm:            $(TOOLDIR)/t-norm
  103. $(TOOLDIR)/t-norm:      xt-norm
  104.             -$(BACKUP) $@ zxt-norm
  105.             rm -f $@
  106.             $(INSTALL) xt-norm $@
  107.             -$(CHMOD) $(PGMPROT) $@
  108.             -$(CHOWN) $(PPUSER) $@
  109.             -@ls -ls $@
  110.             -@echo "t-norm tool installed normally"; echo ""
  111.  
  112.  
  113. t-pefrag:               xt-pefrag
  114. xt-pefrag:              t-pefrag.o $(LIBPP)
  115.             $(CC) $(LDFLAGS) -o $@ t-pefrag.o $(LIBPP) $(LIBSYS)
  116. l-t-pefrag:             t-pefrag.c
  117.             $(LINT) $(LINTFLAGS) t-pefrag.c $(LINTLIBS)
  118. inst-t-pefrag:          $(TOOLDIR)/t-pefrag
  119. $(TOOLDIR)/t-pefrag:    xt-pefrag
  120.             -$(BACKUP) $@ zxt-pefrag
  121.             rm -f $@
  122.             $(INSTALL) xt-pefrag $@
  123.             -$(CHMOD) $(PGMPROT) $@
  124.             -$(CHOWN) $(PPUSER) $@
  125.             -@ls -ls $@
  126.             -@echo "t-pefrag tool installed normally"; echo ""
  127.  
  128.  
  129. t-prf:                  xt-prf
  130. xt-prf:                 t-prf.o $(LIBPP)
  131.             $(CC) $(LDFLAGS) -o $@ t-prf.o $(LIBPP) $(LIBSYS)
  132. l-t-prf:                t-prf.c
  133.             $(LINT) $(LINTFLAGS t-prf.c $(LINTLIBS)
  134. inst-t-prf:             $(TOOLDIR)/t-prf
  135. $(TOOLDIR)/t-prf:       xt-prf
  136.             -$(BACKUP) $@ zxt-prf
  137.             rm -f $@
  138.             $(INSTALL) xt-prf $@
  139.             -$(CHMOD) $(PGMPROT) $@
  140.             -$(CHOWN) $(PPUSER) $@
  141.             -@ls -ls $@
  142.             -@echo "t-prf tool installed normally"; echo ""
  143.  
  144.  
  145. t-rdmsg:                xt-rdmsg
  146. xt-rdmsg:               t-rdmsg.o $(LIBPP)
  147.             $(CC) $(LDFLAGS) -o $@ t-rdmsg.o $(LIBPP) $(LIBSYS)
  148. l-t-rdmsg:              t-rdmsg.c
  149.             $(LINT) $(LINTFLAGS t-rdmsg.c $(LINTLIBS)
  150. inst-t-rdmsg:           $(TOOLDIR)/t-rdmsg
  151. $(TOOLDIR)/t-rdmsg:     xt-rdmsg
  152.             -$(BACKUP) $@ zxt-rdmsg
  153.             rm -f $@
  154.             $(INSTALL) xt-rdmsg $@
  155.             -$(CHMOD) $(PGMPROT) $@
  156.             -$(CHOWN) $(PPUSER) $@
  157.             -@ls -ls $@
  158.             -@echo "t-rdmsg tool installed normally"; echo ""
  159.  
  160.  
  161. t-single:          xt-single
  162. xt-single:         t-single.o $(LIBPP)
  163.             $(CC) $(LDFLAGS) -o $@ t-single.o \
  164.             $(LIBPP) $(LIBSYS)
  165. l-t-single:        t-single.c
  166.             $(LINT) $(LINTFLAGS) t-single.c $(LINTISODE)
  167. inst-t-single:     $(TOOLDIR)/t-single
  168. $(TOOLDIR)/t-single: xt-single
  169.             -$(BACKUP) $@ zxt-single
  170.             rm -f $@
  171.             $(INSTALL) xt-single $@
  172.             -$(CHMOD) $(PGMPROT) $@
  173.             -$(CHOWN) $(PPUSER) $@
  174.             -@ls -ls $@
  175.             -@echo "t-single tool installed normally"; \
  176.             echo ""
  177.  
  178.  
  179. t-time:                 xt-time
  180. xt-time:                t-time.o $(LIBPP)
  181.             $(CC) $(LDFLAGS) -o $@ t-time.o $(LIBPP) $(LIBSYS)
  182. l-t-time:               t-time.c
  183.             $(LINT) $(LINTFLAGS t-time.c $(LINTLIBS)
  184. inst-t-time:            $(TOOLDIR)/t-time
  185. $(TOOLDIR)/t-time:      xt-time
  186.             -$(BACKUP) $@ zxt-time
  187.             rm -f $@
  188.             $(INSTALL) xt-time $@
  189.             -$(CHMOD) $(PGMPROT) $@
  190.             -$(CHOWN) $(PPUSER) $@
  191.             -@ls -ls $@
  192.             -@echo "t-time tool installed normally"; echo ""
  193.  
  194. t-rtime:                 xt-rtime
  195. xt-rtime:                t-rtime.o $(LIBPP)
  196.             $(CC) $(LDFLAGS) -o $@ t-rtime.o $(LIBPP) $(LIBSYS)
  197. l-t-rtime:               t-rtime.c
  198.             $(LINT) $(LINTFLAGS t-rtime.c $(LINTLIBS)
  199. inst-t-rtime:            $(TOOLDIR)/t-rtime
  200. $(TOOLDIR)/t-rtime:      xt-rtime
  201.             -$(BACKUP) $@ zxt-rtime
  202.             rm -f $@
  203.             $(INSTALL) xt-rtime $@
  204.             -$(CHMOD) $(PGMPROT) $@
  205.             -$(CHOWN) $(PPUSER) $@
  206.             -@ls -ls $@
  207.             -@echo "t-rtime tool installed normally"; echo ""
  208.  
  209.  
  210. t-txt2dr:               xt-txt2dr
  211. xt-txt2dr:              t-txt2dr.o $(LIBPP)
  212.             $(CC) $(LDFLAGS) -o $@ t-txt2dr.o $(LIBPP) $(LIBSYS)
  213. l-t-txt2dr:             t-txt2dr.c
  214.             $(LINT) $(LINTFLAGS t-txt2dr.c $(LINTLIBS)
  215. inst-t-txt2dr:          $(TOOLDIR)/t-txt2dr
  216. $(TOOLDIR)/t-txt2dr:    xt-txt2dr
  217.             -$(BACKUP) $@ zxt-txt2dr
  218.             rm -f $@
  219.             $(INSTALL) xt-txt2dr $@
  220.             -$(CHMOD) $(PGMPROT) $@
  221.             -$(CHOWN) $(PPUSER) $@
  222.             -@ls -ls $@
  223.             -@echo "t-txt2dr tool installed normally"; echo ""
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230. clean:  tidy
  231.     rm -f $(OBJS)
  232. tidy:
  233.     rm -f core.* $(PROGS) zxt-* *.old *.BAK
  234. depend:
  235.     $(DEPEND) -I$(HEADERS) $(SRCS)
  236. define:
  237.     $(DEFINE) Makefile
  238.  
  239.  
  240.  
  241. ############################################################
  242. #
  243. #               End of building rules
  244. #
  245. ############################################################
  246.  
  247. # DO NOT DELETE THIS LINE MAKE DEPEND NEEDS IT
  248. # Dependencies follow
  249. t-chkpe.o: t-chkpe.c
  250. t-chkpe.o: ../../h/head.h
  251. t-chkpe.o: ../../h/util.h
  252. t-chkpe.o: ../../h/config.h
  253. t-chkpe.o: ../../h/ll_log.h
  254. t-chkpe.o: ../../h/retcode.h
  255. t-chkpe.o: ../../h/or.h
  256. t-conf.o: t-conf.c
  257. t-norm.o: t-norm.c
  258. t-norm.o: ../../h/util.h
  259. t-norm.o: ../../h/config.h
  260. t-norm.o: ../../h/ll_log.h
  261. t-norm.o: ../../h/chan.h
  262. t-norm.o: ../../h/table.h
  263. t-norm.o: ../../h/list_bpt.h
  264. t-pefrag.o: t-pefrag.c
  265. t-pefrag.o: ../../h/util.h
  266. t-pefrag.o: ../../h/config.h
  267. t-pefrag.o: ../../h/ll_log.h
  268. t-prf.o: t-prf.c
  269. t-prf.o: ../../h/head.h
  270. t-prf.o: ../../h/util.h
  271. t-prf.o: ../../h/config.h
  272. t-prf.o: ../../h/ll_log.h
  273. t-prf.o: ../../h/retcode.h
  274. t-rdmsg.o: t-rdmsg.c
  275. t-rdmsg.o: ../../h/head.h
  276. t-rdmsg.o: ../../h/util.h
  277. t-rdmsg.o: ../../h/config.h
  278. t-rdmsg.o: ../../h/ll_log.h
  279. t-rdmsg.o: ../../h/retcode.h
  280. t-rdmsg.o: ../../h/prm.h
  281. t-rdmsg.o: ../../h/q.h
  282. t-rdmsg.o: ../../h/adr.h
  283. t-rdmsg.o: ../../h/list_rchan.h
  284. t-rdmsg.o: ../../h/chan.h
  285. t-rdmsg.o: ../../h/table.h
  286. t-rdmsg.o: ../../h/list_bpt.h
  287. t-rdmsg.o: ../../h/auth.h
  288. t-rdmsg.o: ../../h/list_bpt.h
  289. t-rdmsg.o: ../../h/extension.h
  290. t-rdmsg.o: ../../h/mta.h
  291. t-rdmsg.o: ../../h/adr.h
  292. t-rdmsg.o: ../../h/list_bpt.h
  293. t-rdmsg.o: ../../h/mta.h
  294. t-single.o: t-single.c
  295. t-single.o: ../../h/util.h
  296. t-single.o: ../../h/config.h
  297. t-single.o: ../../h/ll_log.h
  298. t-single.o: ../../h/ap.h
  299. t-single.o: ../../h/util.h
  300. t-single.o: ../../h/chan.h
  301. t-single.o: ../../h/table.h
  302. t-single.o: ../../h/list_bpt.h
  303. t-single.o: ../../h/retcode.h
  304. t-time.o: t-time.c
  305. t-time.o: ../../h/util.h
  306. t-time.o: ../../h/config.h
  307. t-time.o: ../../h/ll_log.h
  308. t-txt2dr.o: t-txt2dr.c
  309. t-txt2dr.o: ../../h/util.h
  310. t-txt2dr.o: ../../h/config.h
  311. t-txt2dr.o: ../../h/ll_log.h
  312. t-txt2dr.o: ../../h/q.h
  313. t-txt2dr.o: ../../h/adr.h
  314. t-txt2dr.o: ../../h/list_rchan.h
  315. t-txt2dr.o: ../../h/chan.h
  316. t-txt2dr.o: ../../h/table.h
  317. t-txt2dr.o: ../../h/list_bpt.h
  318. t-txt2dr.o: ../../h/auth.h
  319. t-txt2dr.o: ../../h/list_bpt.h
  320. t-txt2dr.o: ../../h/extension.h
  321. t-txt2dr.o: ../../h/mta.h
  322. t-txt2dr.o: ../../h/adr.h
  323. t-txt2dr.o: ../../h/list_bpt.h
  324. t-txt2dr.o: ../../h/mta.h
  325. t-txt2dr.o: ../../h/dr.h
  326. t-txt2dr.o: ../../h/extension.h
  327. t-txt2dr.o: ../../h/mta.h
  328.  
  329. # DEPENDENCIES MUST END AT END OF FILE
  330. # IF YOU PUT STUFF HERE IT WILL GO AWAY
  331. # see make depend above
  332.